/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ita.escolaita.ejb;

import br.ita.escolaita.model.entity.Avaliacao;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Rafael
 */
@Stateless
public class AvaliacaoEjbBean implements AvaliacaoEjbLocal {

    @PersistenceContext(unitName = "escolaIta-ejbPU")
    private EntityManager em;

    public void incluirNota(Avaliacao avaliacao) {
        em.persist(avaliacao);
        em.flush();
    }
}
